// void, Obj This, point pt

Unit this;
ObjList ol;
this = This.AsUnit();


//.pr("peaceful::move: move to a point");
if(!.IsWaterUnit && .IsHeirOf("Wagon")){
	if(.AsWagon.name != "")
		.AsWagon.SetName("");
}

if(.IsValid)
	if(.IsHeirOf("Prisoner")){
		ol = ObjsInSight(this, "Military").GetObjList();
		if(ol.count > 0){
			Unit u;
			u = ol[rand(ol.count)].AsUnit;
			if(u.IsValid){
				if(.player != u.player)
					.SetPlayer(u.player);
			}
		}
	}

while (!.Goto(pt, 0, 2000, false, 0));
